//
//  MPBTools+Notification.h
//  MiaoPai
//
//  Created by jiaxuzhou on 2017/6/10.
//  Copyright © 2017年 Jeakin. All rights reserved.
//
//  通知工具类


#import "MPBTools.h"


NS_ASSUME_NONNULL_BEGIN


@interface MPBTools (Notification)

/**
 注释

 @param observer 注释
 @param aSelector 注释
 @param aName 注释
 @param anObject 注释
 */
- (void)addObserver:(id)observer
           selector:(SEL)aSelector
               name:(NSString *)aName
             object:(nullable id)anObject;

- (void)postNotificationName:(NSString *)aName object:(nullable id)anObject;

- (void)postNotificationName:(NSString *)aName
                      object:(nullable id)anObject
                    userInfo:(nullable NSDictionary *)aUserInfo;

- (void)postNotification:(NSNotification *)notification;

- (void)removeObserver:(id)observer;

- (void)removeObserver:(id)observer name:(nullable NSString *)aName object:(nullable id)anObject;


@end


NS_ASSUME_NONNULL_END
